import request from '@/utils/request'

// 品牌查询列表
export function getCarBrandList(query) {
  return request({
    url: '/car/carBrand/list',
    method: 'get',
    params: query
  })
}
// 车系查询列表
export function getCarSeriesList(query) {
  return request({
    url: '/car/carSeries/list',
    method: 'get',
    params: query
  })
}
// 新增品牌
export function addBrand(data) {
  return request({
    url: '/car/carBrand',
    method: 'post',
    data: data
  })
}
// 新增车系
export function addSeries(data) {
  return request({
    url: '/car/carSeries',
    method: 'post',
    data: data
  })
}

// 编辑/停用/启用品牌
export function updateBrand(data) {
  return request({
    url: '/car/carBrand',
    method: 'put',
    data: data
  })
}
// 编辑/停用/启用车系
export function updateSeries(data) {
  return request({
    url: '/car/carSeries',
    method: 'put',
    data: data
  })
}

// 车系组

export function getSeriesGroupList(query) {
  return request({
    url: '/car/carSeriesGroup/list',
    method: 'get',
    params: query
  })
}



